Ext.define('AgenteNET.Utilitarios.Menu.View.Options',{
    extend:'Ext.menu.Menu',
    title:'Recursos do modulo',
    xtype:'menu',
    floating: false,
    frame:true,
    border:true,
    cls:'menuLayer',
    items:[
    <?php foreach($this->MenuLayer as $recurso): ?>
        {
          text:<?php echo "'".$recurso["title"]."'";?>,
          handler:function(){
            var view=Ext.getCmp('ViewLayer');
            view.removeAll();
            view.add(Ext.create(<?php echo "'AgenteNET.".$recurso["name"]."'";?>,{
                frame:true,
                region:'center',
            }));
          }
        },
        <?php endforeach; ?>
    ] 
});
